package com.example.drools.login;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author deacon
 * @since 2019/12/27
 */
@RestController
public class LoginController {

    @GetMapping("/login/")
    public String aVoid(@LoginUser LoginUserVo loginUserVo){
        System.out.println(loginUserVo.toString());
        return loginUserVo.name;
    }

    @GetMapping("/login2/")
    public String aVoid2(@LoginUser LoginUserVo loginUserVo){
        System.out.println(loginUserVo.toString());
        return loginUserVo.name;
    }
}
